<template>
  <div class='container'>
    <el-dialog
    :title="`${data.id?'修改':'新增'}学科`"
    :visible.sync="dialogVisible"
    width="80%"
  >
    <span>
      <el-form ref="form" :model="newform" :rules="rules" label-width="100px">
        <el-form-item label="所属学科" label-width="80px">
    <el-select v-model="requestParams.state" placeholder="请选择">
      <el-option label="已启用" value="1"></el-option>
      <el-option label="已禁用" value="0"></el-option>
    </el-select>
  </el-form-item>
        <el-form-item label="目录名称" prop="subjectName">
          <el-input v-model="newform.subjectName" />
        </el-form-item>
         </el-form>
      </span>
      <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible=false">取消</el-button>
        <el-button @click="confirm()" type="primary">确认</el-button>
    </span>
  </el-dialog>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  }
}
</script>

<style>

</style>
